package com.wltt.healing.healingusercommon.executors;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @Author: wltt
 * @Date: 2021/9/8 15:26：
 * @Version: 1.0
 * @Description: TODO
 */
public abstract class WorkStealingPool {

    private static ExecutorService service = Executors.newWorkStealingPool();

    /**
     * 使用线程池执行耗时业务逻辑
     *
     * @param runnable 响应方出参对象
     */
    public static void execute(Runnable runnable) {
        service.execute(runnable);
    }
}
